<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script src="jquery.js"></script>
</head>
<body>
<img src="" id="imageId"/>
</body>

<script >
    $.post("/testimg",{suggest:'1'},function(result){
        console.log(result)
        document.getElementById("imageId").src = result.img;
    });
</script>
</html>